//this struct task_manager is the main struct of the core to manager all threads and the conf 

#ifndef TASK_MANAGER_H
#define TASK_MANAGER_H

#include <pthread.h>

#include "task.h"
#include "core_conf.h"

//struct core_conf;
//struct task;

struct task_manager
{
	int count;
	pthread_mutex_t lock;

	struct core_conf *core_conf;
	struct task *task_head;
};




/*
extern struct task_manager *task_manager_create(void);
extern int task_manager_init(struct task_manager *task_manager, struct core_conf *core_conf);
extern int task_manager_finish(struct task_manager *task_manager);
extern int task_manager_add_task(struct task_manager *task_manager, struct task *task);
*/
#endif

